#ifndef _CAPP_H_
    #define _CAPP_H_

#define GLUT_DISABLE_ATEXIT_HACK
#include <windows.h>
#include <glut.h>

#include <gl/gl.h>
#include <gl/glu.h>

#include "CTexture.h"

class CApp {
    public:
        static CApp   theApp;

    private:
        CTexture tempTexture;

    private:
        static int     Win_Main;
        static int     Win_Preview;

	public:
		CApp();

    public:
        bool OnInit();

            static bool OnInit_Main();

            static bool OnInit_Preview();

        static void OnRender_Main();

        static void OnRender_Preview();
};

#endif
